home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Shell_BarGraph_h
- #define __Shell_BarGraph_h
-
- #ifndef __Shell_h
- #include "Shell.Shell.h"
- #endif
-
-
- Shell_rectblock *Shell_AddBarGraph(
- Shell_windblock *wind,
- int x,
- int y,
- int numbars,
- int spacing,
- int barwidth,
- int maxheight,
- int *data,
- int forecol,
- int backcol
- );
- /* Adds a bargraph to a window. The integer array 'data' should */
- /* have the heights of the bars, in OS units. The heights */
- /* should all be less than 'maxheight' */
-
- Shell_rectblock *Shell_AddDoubleBarGraph(
- Shell_windblock *wind,
- int x,
- int y,
- int numbars,
- int spacing,
- int barwidth,
- int maxheight,
- double *data,
- double scale,
- double zero,
- int forecol,
- int backcol
- );
- /* As above but uses double values instead of ints. */
-
- Shell_rectblock *Shell_AddDoubleBarGraph2(
- Shell_windblock *wind,
- int x,
- int y,
- int numbars,
- int spacing,
- int barwidth,
- int maxheight,
- double *data,
- double min,
- double max,
- BOOL autoscale,
- int forecol,
- int backcol
- );
-
- /* Adds a bargraph, where bars go up/down from the y=0 line. */
- /* Set auto TRUE if you want the bargraph to be automatically */
- /* rescaled when bars get too big - this is a bit of a hack as */
- /* only re-displayed bars are checked. */
- /* 'min' and 'max' should hold the max and min values of the */
- /* data. */
-
-
-
- #endif
-